package com.lei.mydb.backend.tm;


import com.lei.mydb.backend.tm.TransactionManager;

/**
 * @author lbwxxc
 * @date 2025/4/26 17:33
 * @description:
 */
public class MockTransactionManager implements TransactionManager {

    @Override
    public long begin() {
        return 0;
    }

    @Override
    public void commit(long xid) {}

    @Override
    public void abort(long xid) {}

    @Override
    public boolean isActive(long xid) {
        return false;
    }

    @Override
    public boolean isCommitted(long xid) {
        return false;
    }

    @Override
    public boolean isAborted(long xid) {
        return false;
    }

    @Override
    public void close() {}

}
